spinbutton: Remove call to GtkSpinButton API
authorTimm Bäder <mail@baedert.org>
Thu, 4 May 2017 16:24:37 +0000 (18:24 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:11 +0000 (21:27 -0400)
The condition will never be true since spinbuttons aren't entries
anymore.

gtk/gtkentry.c

index 01d30cd07c0c23d377d5d4749562a0fdbafdb404..3e0b6110941fa7a6e53424f4d7b70d3a7b1c8f1c 100644 (file)
@@ -51,7 +51,6 @@
 #include "gtkseparatormenuitem.h"
 #include "gtkselection.h"
 #include "gtksettings.h"
-#include "gtkspinbutton.h"
 #include "gtktextutil.h"
 #include "gtkwindow.h"
 #include "gtktreeview.h"
@@ -3200,13 +3199,9 @@ gtk_entry_measure (GtkCssGadget   *gadget,
       char_pixels = (MAX (char_width, digit_width) + PANGO_SCALE - 1) / PANGO_SCALE;
 
       if (priv->width_chars < 0)
-        {
-          min = MIN_ENTRY_WIDTH;
-        }
+        min = MIN_ENTRY_WIDTH;
       else
-        {
-          min = char_pixels * priv->width_chars;
-        }
+        min = char_pixels * priv->width_chars;
 
       if (priv->max_width_chars < 0)
         nat = min;